﻿#include "ClickableLabel.h"

namespace GeneralUI {

	ClickableLabel::ClickableLabel(QWidget *parent, Qt::WindowFlags f)
		:QLabel(parent, f)
	{
		this->show();
	}

	ClickableLabel::ClickableLabel(QString &text, QWidget *parent, Qt::WindowFlags f)
		: QLabel(text, parent, f)
	{
		this->show();
	}

	ClickableLabel::~ClickableLabel()
	{

	}

	void ClickableLabel::mousePressEvent(QMouseEvent *event)
	{
		Q_UNUSED(event);
		emit clicked();
	}

}
